import React from 'react'

//商户
export async function apiGetMerchantInfoPage(params) {
    return await React.$post('/admin/merchantInfo/page', params);
}

//商户
export async function apiGetMerchantInfoView(params) {
    return await React.$post('/admin/merchantInfo/view', params);
}

//商户
export async function apiGetMerchantInfoChart(params) {
    return await React.$post('/admin/merchantInfo/getOrderPriceTotal', params);
}

//商户
export async function apiGetMerchantInfoDiscount(params) {
    return await React.$post('/admin/merchantInfo/discount', params);
}

//商户
export async function apiGetMerchantRecommendPage(params) {
    return await React.$post('/admin/merchantRecommend/page', params);
}

//商户
export async function apiGetMerchantRecommendAdd(params) {
    return await React.$post('/admin/merchantRecommend/add', params);
}

//商户
export async function apiGetMerchantRecommendEdit(params) {
    return await React.$post('/admin/merchantRecommend/edit', params);
}

//商户
export async function apiGetMerchantRecommendDel(params) {
    return await React.$post('/admin/merchantRecommend/del', params);
}

//商户
export async function apiGetMerchantEnvironmentPage(params) {
    return await React.$post('/admin/merchantEnvironment/page', params);
}

//商户
export async function apiGetMerchantEnvironmentAdd(params) {
    return await React.$post('/admin/merchantEnvironment/add', params);
}

//商户
export async function apiGetMerchantEnvironmentEdit(params) {
    return await React.$post('/admin/merchantEnvironment/edit', params);
}

//商户
export async function apiGetMerchantEnvironmentDel(params) {
    return await React.$post('/admin/merchantEnvironment/del', params);
}


//商户-新增
export async function apiGetMerchantInfoAdd(params) {
    return await React.$post('/admin/merchantInfo/add', params);
}

//商户-修改
export async function apiGetMerchantInfoEdit(params) {
    return await React.$post('/admin/merchantInfo/edit', params);
}

//商户-设置满赠
export async function apiGetMerchantInfoSetDiscount(params) {
    return await React.$post('/admin/merchantInfo/setDiscount', params);
}

//商户-删除
export async function apiGetMerchantInfoDel(params) {
    return await React.$post('/admin/merchantInfo/del', params);
}

//商户-删除
export async function apiGetCouponInfoPage(params) {
    return await React.$post('/admin/couponInfo/page', params);
}

//商户
export async function apiGetCouponInfoAddCoupon(params) {
    return await React.$post('/admin/couponInfo/addCoupon', params);
}

//商户
export async function apiGetCouponInfoAddVoucher(params) {
    return await React.$post('/admin/couponInfo/addVoucher', params);
}

//商户
export async function apiGetCouponInfoEditCoupon(params) {
    return await React.$post('/admin/couponInfo/editCoupon', params);
}

//商户
export async function apiGetCouponInfoEditVoucher(params) {
    return await React.$post('/admin/couponInfo/editVoucher', params);
}

//商户
export async function apiGetCouponInfoDel(params) {
    return await React.$post('/admin/couponInfo/remove', params);
}


//商户
export async function apiGetCouponInfoOpenOrClose(params) {
    return await React.$post('/admin/couponInfo/openOrClose', params);
}

//商户
export async function apiGetOrderInfoGetCouponOrderList(params) {
    return await React.$post('/admin/orderInfo/getCouponOrderList', params);
}

//商户
export async function apiGetOrderInfoGetVoucherOrderList(params) {
    return await React.$post('/admin/orderInfo/getVoucherOrderList', params);
}

//商户
export async function apiGetOrderInfoGetPayOrderList(params) {
    return await React.$post('/admin/orderInfo/getPayOrderList', params);
}